import React , { Component } from 'react';


import { withRouter,NavLink} from 'react-router-dom';
import {observer,inject} from 'mobx-react';
// 导入需要的模块
@withRouter
@inject('obs','newobs')
@observer
class View extends Component {

    render(){
        const { name,personCfg } = this.props.newobs;
        return(
            <div className="m">
                <NavLink to="/teststore">下午的页面：teststore</NavLink><br/>
                <NavLink to="/newobs">上午的页面：newobs</NavLink>
                <dl>
                    <dt>{name}</dt>
                    <dd>{personCfg.age}</dd>
                </dl>
            </div>
        )
    }
}

export default View;
